<?php
/// O'My Friends: Personal Social Network Graph on Facebook
/// author : Minkyu Shim (minkyu.shim@gmail.com
class activity{
    public $type;
    public $name;
    public $text;
    public $time;
    
    public function __construct($id, $type, $name, $text, $time){
        $this->id   = $id;
        $this->type = $type;
        $this->name = $name;
        $this->text = htmlspecialchars(substr($text, 0, STRING_LENGTH));
        $this->time = $time;
    }
}
?>